package initialize

import (
	"github.com/exam/global"
	"github.com/winksai/utils/nacos"
	"github.com/winksai/utils/redis"
)

func Redis() {
	nacosConfig := nacos.GetConfig()
	config := nacosConfig.Redis
	Client := redis.InitRedis(config.Host, config.Password, 0)
	global.RedisClient = Client
}
